package work.timejay.user.vo.books;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import work.timejay.user.entity.books.BookType;
import work.timejay.utils.FileUtils;

/**
 * @className:BookTypePageVO.java
 * @author:王文杰
 * @version:1.0.0
 * @description:books分页vo
 * @createTime 2023年11月28日 10:16:00
 */
@Data
public class BookTypePageVO {
    /**
     * 名称
     */
    private String bookName;

    /**
     * path
     */
    private String bookPath;

    /**
     * id
     */
    private Long id;

    public static BookTypePageVO createReturnEntity(BookType e,String path) {
        BookTypePageVO bean = new BookTypePageVO();
        bean.setBookName(e.getBookName());
        bean.setBookPath(path);
        bean.setId(e.getId());
        return bean;
    }
}
